#pragma once
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include<unistd.h>

#include <string>

const std::string recvfile = "/dev/pts/5";

bool OpenTerminal()
{
    int fd=open(recvfile.c_str(),O_WRONLY);
    if(fd<0)
    {
        return false;
    }
    dup2(fd,2);
    return true;
}